package com.cxl.live.exception;

import com.cxl.live.constants.BaseEnums;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @Description: BusinessException
 * @Author: ChenXueLi
 * @Date: 2018-11-26 16:20
 */
public class BusinessException extends BaseException {

    public BusinessException() {}

    public BusinessException(BaseEnums b) {
        super(b.code(), b.desc());
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(int code, String message) {
        super(code, message);
    }


}
